home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / gs261sr4.zip / WATC.MAK < prev    next >
Text File  |  1993-05-25  |  6KB  |  172 lines

  1. #    Copyright (C) 1991, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, MS-DOS/Watcom C386 platform.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ###### This section is the only part of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the default directory/ies for the runtime
  28. # initialization and font files.  Separate multiple directories with \;.
  29. # Use / to indicate directories, not a single \.
  30.  
  31. GS_LIB_DEFAULT=c:/gs\;c:/gs/fonts
  32.  
  33. # Define the name of the Ghostscript initialization file.
  34. # (There is no reason to change this.)
  35.  
  36. GS_INIT=gs_init.ps
  37.  
  38. # Choose generic configuration options.
  39.  
  40. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  41. # Code runs substantially slower even if no debugging switches are set,
  42. # and also takes about another 25K of memory.
  43.  
  44. DEBUG=0
  45.  
  46. # Setting TDEBUG=1 includes symbol table information for the Watcom debugger.
  47. # (This option is NOT needed for using the Watcom profiler.)
  48. # No execution time or space penalty, just larger .OBJ and .EXE files.
  49.  
  50. TDEBUG=0
  51.  
  52. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  53. # so they are visible to the debugger and profiler.
  54. # No execution time or space penalty, just larger .OBJ and .EXE files.
  55.  
  56. NOPRIVATE=0
  57.  
  58. # Define the name of the executable file.
  59.  
  60. GS=gs386
  61.  
  62. # ------ Platform-specific options ------ #
  63.  
  64. # Define the drive, directory, and compiler name for the Watcom C files.
  65. # $(%WATCOM) means use the WATCOM environment variable, which is also used
  66. #   by the Watcom C programs themselves.
  67. # COMP is the full compiler path name (normally $(%WATCOM)\bin\wcc386p).
  68. # LINK is the full linker path name (normally $(%WATCOM)\bin\wlinkp).
  69. # CLINK is the compile-and-link utility full path name (normally
  70. #   $(%WATCOM)\binb\wcl386).
  71. # STUB is the full path name for the DOS extender stub (normally
  72. #   $(%WATCOM)\binb\wstub.exe).
  73. # INCDIR contains the include files (normally $(%WATCOM)\h).
  74. # LIBDIR contains the library files (normally $(%WATCOM)\lib386).
  75. # Note that INCDIR and LIBDIR are always followed by a \,
  76. #   so if you want to use the current directory, use an explicit '.'.
  77.  
  78. COMP=$(%WATCOM)\bin\wcc386p
  79. LINK=$(%WATCOM)\bin\wlinkp
  80. CLINK=$(%WATCOM)\binb\wcl386
  81. STUB=$(%WATCOM)\binb\wstub.exe
  82. INCDIR=$(%WATCOM)\h
  83. LIBDIR=$(%WATCOM)\lib386
  84.  
  85. # Choose platform-specific options.
  86.  
  87. # Define the processor (CPU) type.  Options are 386 or 486.
  88. # Currently the only difference is that 486 always uses in-line
  89. # floating point.
  90.  
  91. CPU_TYPE=386
  92.  
  93. # Define the math coprocessor (FPU) type.
  94. # Options are -1 (optimize for no FPU), 0 (optimize for FPU present,
  95. # but do not require a FPU), 87, 287, or 387.
  96. # If the CPU type is 486, the FPU type is irrelevant, since the 80486
  97. # CPU includes the equivalent of an 80387 on-chip.
  98. # An xx87 option means that the executable will run only if a FPU
  99. # of that type (or higher) is available: this is NOT currently checked
  100. # at runtime.
  101.  
  102. FPU_TYPE=0
  103.  
  104. # ---------------------------- End of options ---------------------------- #
  105.  
  106. # Define the platform name.
  107.  
  108. PLATFORM=watc_
  109.  
  110. # Define the name of the makefile -- used in dependencies.
  111.  
  112. MAKEFILE=watc.mak
  113.  
  114. # Define additional platform compilation flags.
  115.  
  116. PLATOPT=
  117.  
  118. !include wccommon.mak
  119.  
  120. # ------ Devices and features ------ #
  121.  
  122. # Choose the language feature(s) to include.  See gs.mak for details.
  123. # Since we have a large address space, we include the optional features.
  124.  
  125. FEATURE_DEVS=filter.dev dps.dev level2.dev
  126.  
  127. # Choose the device(s) to include.  See devs.mak for details.
  128.  
  129. DEVICE_DEVS=vga.dev ega.dev
  130. DEVICE_DEVS2=atiw.dev s3vga.dev tseng.dev tvga.dev
  131. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev
  132. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev paintjet.dev pjetxl.dev
  133. DEVICE_DEVS5=epson.dev eps9high.dev ibmpro.dev bj10e.dev
  134. DEVICE_DEVS8=gifmono.dev gif8.dev pcxmono.dev pcx16.dev pcx256.dev bit.dev
  135. !include gs.mak
  136. !include devs.mak
  137.  
  138. # -------------------------------- Library -------------------------------- #
  139.  
  140. # The Watcom C platform
  141.  
  142. watc__=gp_iwatc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ)
  143. watc_.dev: $(watc__)
  144.     $(SHP)gssetmod watc_ $(watc__)
  145.  
  146. gp_iwatc.$(OBJ): gp_iwatc.c $(string__h) $(gx_h) $(gp_h)
  147.  
  148. gp_dosfb.$(OBJ): gp_dosfb.c $(memory__h) $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  149.  
  150. gp_msdos.$(OBJ): gp_msdos.c $(dos__h) $(string__h) $(gx_h) $(gp_h)
  151.  
  152. # ----------------------------- Main program ------------------------------ #
  153.  
  154. BEGINFILES=*.err
  155. # The Watcom compiler doesn't recognize wildcards;
  156. # we don't want any compilation to fail.
  157. CCBEGIN=for %%f in (gs*.c gx*.c z*.c) do $(CCC) %%f
  158.  
  159. LIBDOS=$(LIBGS) gp_iwatc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ) objw.tr
  160.  
  161. # Interpreter main program
  162.  
  163. GS_ALL=gs.$(OBJ) $(INT) $(INTASM) gsmain.$(OBJ) $(LIBDOS)
  164.  
  165. objwl.tr: $(MAKEFILE)
  166.     echo SYSTEM DOS4G >objwl.tr
  167.     echo OPTION STUB=$(STUB) >>objwl.tr
  168.     echo OPTION STACK=8k >>objwl.tr
  169.  
  170. $(GS)$(XE): $(GS_ALL) $(ALL_DEVS) objwl.tr
  171.     $(LINK) $(LCT) NAME $(GS) OPTION MAP=$(GS) @gsw.tr @objw.tr @objwl.tr
  172.